<h1>Editing Blog '<%= @blog.name %>'</h1>

<%= error_messages_for :blog %>

<% form_for(:blog, :url => blog_path(@blog), :html => { :method => :put }) do |f| %>
  <p>
    <label for="blog_name">Name</label><br />
    <%= f.text_field(:name, :style => "width: 15em;") %>
  </p>
  
  <p>
    <label for="blog_title">Title</label><br />
    <%= f.text_field(:title, :style => "width: 30em;") %>
  </p>
  
  <p>
    <label for="blog_subtitle">Subtitle</label><br />
    <%= f.text_field(:subtitle, :style => "width: 50em;") %>
  </p>
  
  <p>
    <%= submit_tag "Update" %>
  </p>
<% end %>

<%= link_to 'Show', blog_path(@blog) %> |
<%= link_to 'Back', blogs_path %>